#include <stdlib.h>
#include <stdio.h>
#include <bsd/string.h>

int main(){
    char buf1[10];
    char buf2[15];

    memset(buf1, 'h', 10);
    memset(buf2, 'H', 15);

    strncpy(buf1, buf2, 10);
    printf("%s\n", buf1);
    memset(buf1, 'h', 10);
    strlcpy(buf1, buf2, 10);
    printf("%s\n", buf1);

    return 0;
}